package com;

import java.util.Scanner;

public class DuiCheng {

    public static void main(String[] args) {
        // 1.第一种方法  用StringBuff中的resver



        // 2.第二种方法
        /*        boolean flag = true;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String next = sc.next();
        StringBuffer stb1 = new StringBuffer(next);
        for (int i = 0; i < stb1.length()/2; i++) {
            char c = stb1.charAt(i);
            char d = stb1.charAt(stb1.length()- 1- i);
            if (c == d ){
                flag = true;
            } else {
                System.out.println("不对称");
                flag = false;
                break;
            }
        }
        if (flag == true) {
            System.out.println("对称");
        }*/


    }
}
